import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import Login from '@/components/menu/Login.vue';
import Student from '@/components/menu/Student.vue';
import HomePage from '@/components/home/HomePage.vue';

const routes = [
  { path: '*', redirect: '/' },
  { path: '/', name: 'Login', component: Login },
  {
    path: '/student', name: 'Student', component: Student,
    children: [
      { path: '/home', component: HomePage },
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
